
const cloud = require('wx-server-sdk');

cloud.init({
  env: cloud.DYNAMIC_CURRENT_ENV,
  traceUser:true
});
 
// 云函数处理入口
exports.main = async (event, context) => {
  const res = await cloud.openapi.phonenumber.getPhoneNumber({
    encryptedData: event.encryptedData,
    iv: event.iv
  });
  return res;
};